<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var i = prompt('请输入你要生成多少个字符串：');
        i = Number(i);
        alert('即将生成'+ i + '个随机字符串！！')
        for(x = 0 ;x < i;x++){
            //随机生成一个小数
            var num =Math.random(); 
            //转换为36进制的字符串,36进制即26个字母+10个数字
            var str = num.toString(36);
            //截取小数点后的字符
            document.write(str.substring(2),'<br>');
        }
        
        

    </script>
</head>
<body>
    
</body>
</html>